-- GENERATED SPELL FOR [Chief Engineer Boltwrench] --


function spell0_30345(pUnit, Event) --@Infra-green Vision,n/a--
pUnit:FullCastSpellOnTarget(59651,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30345', 652, 1)
end

function Sorts_30345(pUnit, Event)
local choix_sorts_30345 = math.random(0, 0)
if choix_sorts_30345 == 0 then
pUnit:RegisterEvent('spell0_30345', 1, 1)
end
end

function mob30345_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30345', math.random(1500, 3000), 1)
end

function mob30345_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30345_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30345_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30345, 1, 'mob30345_Action')
RegisterUnitEvent(30345, 2, 'mob30345_Leave')
RegisterUnitEvent(30345, 3, 'mob30345_Kill')
RegisterUnitEvent(30345, 4, 'mob30345_Die')
